import 'dart:convert';

import 'package:enterprise_v6_app/app/data/entities/application/emergency/emergency_task_user_entity.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/emergency_task_instructions_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/emergency_task_instructions_entity.g.dart';

/// 任务指令数据
@JsonSerializable()
class EmergencyTaskInstructionsEntity {
  EmergencyTaskInstructionsEntity();

  factory EmergencyTaskInstructionsEntity.fromJson(Map<String, dynamic> json) => $EmergencyTaskInstructionsEntityFromJson(json);
  late String createBy = '';
  late String createById = '';
  late String createDate = '';
  late String deleted = '';
  late String endDate = '';
  late String id = '';
  late String nodeId = '';
  late String taskInstructions = '';
  late List<EmergencyTaskUserEntity> taskUserList = [];
  late String updateBy = '';
  late String updateById = '';
  late String updateDate = '';

  ///	是否已执行 0:待执行 1:一执行
  late String whetherToExecute = '';

  Map<String, dynamic> toJson() => $EmergencyTaskInstructionsEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
